package com.lq.service.impl;

import com.lq.mapper.UserMapper;
import com.lq.pojo.User;
import com.lq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String username, String password) {
        return userMapper.login(username, password);
    }

    @Override
    public Integer selectCountByName(String userName) {
        return userMapper.selectCountByName(userName);
    }

    @Override
    public void insertUser(String name, String pwd, String tel, String sex) {
        userMapper.insertUser(name,pwd, tel, sex);
    }


}
